<!--
 * @FilePath     : /study_code/css/animation.html
 * @Description  : animation 定义动画语法
 * @Date         : 2025-04-27 17:03:51
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-27 17:03:52
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      /* 1、关键帧定义动画； */
      @keyframes test {
        0% {
          background-color: lightblue;
        }
        100% {
          background-color: black;
        }
      }
      /* 2、调用动画 */
      div {
        width: 300px;
        height: 100px;
        background-color: pink;
        animation-name: test;
        animation-duration: 3s;
        animation-iteration-count: infinite;
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
